package com.angel.dao.health;

import com.angel.core.base.BaseMapper;
import com.angel.health.SysMenu;
import com.angel.health.SysMenuExample;
import com.angel.health.SysMenuExt;
import com.angel.health.SysUser;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface SysMenuMapper extends BaseMapper<SysMenu>{
    int countByExample(SysMenuExample example);

    int deleteByExample(SysMenuExample example);

    int deleteByPrimaryKey(Integer id);

//    int insert(SysMenu record);

    int insertSelective(SysMenu record);

    List<SysMenu> selectByExample(SysMenuExample example);

    SysMenu selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SysMenu record, @Param("example") SysMenuExample example);

    int updateByExample(@Param("record") SysMenu record, @Param("example") SysMenuExample example);

//    int updateByPrimaryKeySelective(SysMenu record);

    int updateByPrimaryKey(SysMenu record);

	List<SysMenu> findAllMenu(SysUser user);

	List<SysMenu> findMenuByRole(Integer roleId);

	List<SysMenu> findMenus(SysMenu record);
	
	List<SysMenuExt> findUserById(SysMenu record);
}